package com.hua.designpattern.behavioral.observer.subscriber;

public abstract class SubscriberAbstract {
	public abstract void update(String message);

	public void addPublisher(PublisherAbstract publisher) {
		publisher.addSubscriber(this);
	}

	public void removePublisher(PublisherAbstract publisher) {
		publisher.removeSubscriber(this);
	}

}
